﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.PdfDocumentViewer1.CacheInterval = 1000
            Me.PdfDocumentViewer1.CacheTime = 1200
            Me.PdfDocumentViewer1.CacheNumberImage = 1000
            Me.PdfDocumentViewer1.ScrollInterval = 300
            Me.PdfDocumentViewer1.ZoomFactor = 1.25F
            Me.PdfDocumentViewer1.LoadFromFile("files\\PDFViewer.pdf")
            Me.PdfDocumentViewer1.CustomErrorMessages = "Error information"


            Me.PdfViewerToolbar1.BackColor = System.Drawing.Color.FromArgb(255, 255, 243, 255)
            Me.PdfViewerToolbar1.CountPage = Me.PdfDocumentViewer1.CountPage()
            Me.PdfViewerToolbar1.ZoomFactor = 1.25F

        End If
    End Sub

End Class